*,
p {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fafafb;
}
.broadcast_index {
  width: 100%;
  height: 100%;
  font-family: PingFangSC-Regular, PingFang SC;
  background: #fafafb;
  .header {
    position: relative;
    width: 100%;
    min-width: 1200px;
    height: 112px;
    padding: 27px;
    background-color: #ffffff;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.06);
    .title {
      color: #171726;
      font-weight: 600;
      font-size: 20px;
      font-family: PingFangSC, PingFang SC;
      line-height: 20px;
    }
    .name {
      margin-top: 18px;
      color: #696974;
      font-weight: 400;
      font-size: 14px;
      font-family: PingFangSC, PingFang SC;
      line-height: 14px;
      .num {
        margin-left: 20px;
      }
    }
    .header_btn {
      position: absolute;
      top: 35px;
      right: 30px;
      Button {
        width: 120px;
        height: 40px;
        margin-left: 20px;
        color: #0062ff;
        font-weight: 600;
        font-size: 16px;
        font-family: PingFangSC-Regular, PingFang SC;
        line-height: 22px;
        border: 1px solid #0062ff;
        border-radius: 6px;
      }
    }
  }
  .content {
    display: flex;
    min-width: 1200px;
    margin-top: 16px;
    .content_video {
      flex: 1;
      margin: 0 12px;
      background-color: #fff;
    }
    .content_video {
      flex: 1;
      margin: 0 12px;
      background-color: #fff;
      .video {
        display: flex;
        width: 100%;
        height: 810px;
        #host {
          width: 100%;
          height: 750px;
        }
        #audience {
          display: flex;
          flex-wrap: wrap;
          justify-content: space-around;
          /* 有一个元素 */
          // div:only-child {
          //   background-color: pink !important;
          // }
          /* 有二个元素 */
          div:first-child:nth-last-child(2),
          div:first-child:nth-last-child(2) ~ div {
            // width: 50% !important;
            height: 50% !important;
            // background-color: rgb(96, 96, 163) !important;
          }

          /* 有三个元素 */
          div:first-child:nth-last-child(3),
          div:first-child:nth-last-child(3) ~ div {
            width: 50% !important;
            height: 50% !important;
            // background-color: rgb(87, 58, 83) !important;
          }
          /* 有四个元素 */
          div:first-child:nth-last-child(4),
          div:first-child:nth-last-child(4) ~ div {
            width: 50% !important;
            height: 50% !important;
            // background-color: rgb(94, 143, 74) !important;
          }
          /* 有五个元素 */
          div:first-child:nth-last-child(5),
          div:first-child:nth-last-child(5) ~ div {
            width: 50% !important;
            height: 33.3% !important;
            // background-color: rgb(77, 157, 160) !important;
          }
          #box:hover {
            .btn {
              display: block !important;
            }
          }
          // .btn{
          //   position: 'absolute',
          //                 left: '50px',
          //                 bottom: '50px',
          //                 cursor: 'pointer',
          //                 background-color: 'rgba(0,0,0,0.3)',
          // }
        }
      }

      .video-btn {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        height: 60px;
        border-top: 1px solid #eee;
        .btn {
          margin-right: 40px;
          img {
            width: 20px;
            height: 20px;
            margin-right: 5px;
          }
        }
        .btn:hover {
          color: #0064ff;
        }
      }
    }
    .content_right {
      .action {
        width: 320px;
        height: 246px;
        margin: 0 16px;
        padding: 0 16px;
        background: #ffffff;
        .title {
          padding: 16px 0;
          font-weight: 600;
          font-size: 16px;
          font-family: PingFangSC-Semibold, PingFang SC;
          line-height: 16px;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .action_list {
          display: flex;
          flex-direction: column;
          height: 200px;
          overflow-y: scroll;
          &::-webkit-scrollbar {
            display: none;
          }
          .avatar {
            width: 50px;
          }
          .info {
            width: 238px;
            .name {
              height: 20px;
              color: #171729;
              font-weight: 600;
              font-size: 14px;
              font-family: PingFangSC, PingFang SC;
            }
            .status {
              height: 14px;
              color: #09cf66;
              font-weight: 400;
              font-size: 10px;
              font-family: PingFangSC, PingFang SC;
              line-height: 14px;
            }
          }
          .positional {
            margin-top: 5px;
            color: #696976;
            font-weight: 600;
            font-size: 12px;
            font-family: Helvetica;
          }
          .btn {
            display: flex;
            align-items: center;
            margin-top: 5px;
            .put {
              width: 80px;
              height: 24px;
              color: #ffffff;
              font-size: 10px;
              background: #0062ff;
              border-radius: 3px;
            }
            .out {
              width: 60px;
              height: 24px;
              margin-left: 8px;
              border-radius: 3px;
            }
          }
        }
      }
      .chat {
        width: 320px;
        height: 536px;
        margin: 16px 16px 0 16px;
        padding: 0 16px;
        background: #ffffff;
        .title {
          padding: 16px 0;
          font-weight: 600;
          font-size: 16px;
          font-family: PingFangSC-Semibold, PingFang SC;
          line-height: 16px;
          border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        #chatList {
          width: 288px;
          height: 350px;
          margin-bottom: 20px;
          // padding: 0 0 20px 0;
          &::-webkit-scrollbar {
            display: none;
          }
        }
        .input {
          position: relative;
          button {
            position: absolute;
            right: 5px;
            bottom: 5px;
            z-index: 999;
            width: 56px;
            height: 26px;
            color: #ffffff;
            background: #bfbfbf;
            border: none;
            border-radius: 4px;
            cursor: pointer;
          }
        }
      }
    }
  }
}
